<?php 
$date = isset($_GET['date'])?$_GET['date']:'2010-06-01';
$lines = file(dirname(__FILE__).'/phpdata/bank_'.$date.'.txt' );
$all = array();
foreach ($lines as $line_num => $line){
	$line =  preg_replace('/(-?[^\D]+\.?[^\D]*)E(-\d+)/', 0, $line);
	$line =  str_replace('%', '', $line);
	$arr = preg_split('/[ \t]+/',$line);
	$c = count($arr);
	$arr[$c-1] = preg_replace('/\r\n+/','',$arr[$c-1]);
	$all[] = $arr;
}
var_export($all);

//echo json_encode($all);

?>